/*****************************************************************//**
 * \file   TxtMemStream.h
 * \brief  TxtMemStream
 * 
 * \author Wyatt
 * \date   May 2023
 *********************************************************************/
#pragma once

#include <string>
//#include <string_view>
#include <fstream>
#include <sstream>

class TxtMemStream
{
public:
	TxtMemStream(std::string filePath);
	virtual ~TxtMemStream();

	enum PosType
	{
		PosBegin,
		PosEnd,
	};

	bool is_open();
	void close();
	void seekg(long long off, PosType way);
	std::istream &getline(std::string& buff);
	
	unsigned long nLine = 0;
private:
	std::ifstream _fs;
	std::string _filePath;

};
